

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head><title>

</title><link href='./home/css/etm.css' rel='stylesheet' type='text/css' /><!--[if IE 8]> <link href='/Themes/Theme3/ie8Fix.css' rel='stylesheet' /> <![endif]-->

    <script src="./home/js/WdatePicker.js"></script>
    <script src="./home/js/jquery-1.4.2.min.js"></script>
    <script src="./home/js/jQuery.Ex.js"></script>
    <script type="text/javascript">
        function selectMember(navId) {
            window.parent.showDialog("选择幼儿", "../Modules/CRM/SelectMember.aspx?navId=" + navId + "&memberType=1&act=TuitionOut", "760px", "420px");
        }

        function selectChargeItem(navId) {
            window.parent.showDialog("退费科目", "../Modules/Finance/SelectTuitionItem.aspx?navId=" + navId, "760px", "420px");
        }

        function AddMemberInfo(memberGuid, memberName,memberType) {
            $.AjaxETM("Finance_MemberBalance", { "MemberGuid":memberGuid },
                        function (data) {
                            $("#MemberYuE").html(data);
                        },
                         false, "text");
            $("#lbMemberInfo").html(memberName);
            $("#hfMemberGuid").val(memberGuid);
            $("#ddlMemberType").val(memberType);
            $("#trMemberType").show();
            if (memberGuid != null && memberGuid != "") {
                parent.parent.ShowTips("添加成功");
            }
            else {
                parent.parent.ShowTips("该幼儿已添加");
                return;
            }
        }

    </script>
    <script type="text/javascript">
        function selectTuitionItem(navId) {
            var EffectiveLen = "M";
            if ($("#rdbTimeStepM").is(':checked')) {
                EffectiveLen = "M";
            }
            else {
                EffectiveLen = "T";
            }
            window.parent.showDialog("选择退费科目", "../Modules/Finance/SelectTuitionItem.aspx?navId=" + navId, "760px", "420px");
        }
        function AddTuitionItem(Items) {
            if (Items != null && Items != "") {
                var hfInfo = $("#hfTuitionItemData").val();
                if (hfInfo != "") {
                    jsonObjList = jQuery.parseJSON(hfInfo);
                }
                else {
                    jsonObjList = [];
                }
                var jsonItemList = jQuery.parseJSON(Items);

                var isExist = false;
                for (var i = 0; i < jsonObjList.length; i++) {
                    if (jsonObjList[i].TuitionItemGuid.toLocaleLowerCase() == jsonItemList[0].TuitionItemGuid.toLocaleLowerCase()) {
                        isExist = true;
                    }
                }
                if (isExist) {
                    parent.parent.ShowTips("该科目已添加");
                }
                else {
                   
                    jsonObjList.push({ TuitionRefundItemGuid: "00000000-0000-0000-0000-000000000000", TuitionRefundGuid: "00000000-0000-0000-0000-000000000000", TuitionItemGuid: jsonItemList[0].TuitionItemGuid, ItemName: jsonItemList[0].ItemName, ItemPrice: jsonItemList[0].ItemPrice, ItemCount: 1, ItemType: 1, ItemAmount:0});
                 
                   
                    $("#hfTuitionItemData").val(JSON.stringify(jsonObjList));
                    BindItem();
                    parent.parent.ShowTips("添加成功");
                }

            }

        }
        function BindItem() {
            var hfInfo = $("#hfTuitionItemData").val();
            if (hfInfo != "") {
                jsonItemList = jQuery.parseJSON(hfInfo);
            }
            else {
                jsonItemList = [];
            }
            var trHtml = '';
            for (var i = 0; i < jsonItemList.length; i++) {
                trHtml += '<tr>';
                trHtml += '<td>' + jsonItemList[i].ItemName + '</td>';
                trHtml += '<td style="text-align:right;">' + (Number(jsonItemList[i].ItemPrice)).toFixed(2) + '</td>';
               
                trHtml += '<td><input type="text" name="tbItemRefundAmount" value="' + (Number(jsonItemList[i].ItemAmount)).toFixed(2) + '" class="int tbItemRefundAmount" style="width:60px;text-align:right;" /></td>';

                trHtml += '<td><a href="javascript:void(0)" title="删除" class="deleteTuitionItem"><img src="../../Images/del_c.png" /></a>';
                trHtml += '<input type="hidden" name="hfTuitionItemGuid" value=\'' + jsonItemList[i].TuitionItemGuid + '\' />';
                trHtml += '</td>';
                trHtml += '</tr>';
            }
            $("#TuitionItemList tbody").html(trHtml);
            ItemAutoCompute();
        }
        function ItemAutoCompute() {
            var subTotal = 0, discountSubTotal = 0;
            $("#TuitionItemList tbody tr").each(function () {

                itemAmount=0;
                if(isNaN($(this).children().eq(2).find("input").eq(0).val())) {
                    itemAmount=0;
                }
                else{
                    itemAmount= Number($(this).children().eq(2).find("input").eq(0).val());
                }
                subTotal += itemAmount;
               
            });
            $("#lbTuitionItemTotal").text(subTotal.toFixed(2));
            ColAmount();
            ReSizeScrollbar();
        }
        function ColAmount() {
            var totalAmount = 0;
           
            if (isNaN(parseFloat($("#lbLessonTotal").html())))
                totalAmount += parseFloat(0);
            else
                totalAmount += parseFloat($("#lbLessonTotal").html());

            if (isNaN(parseFloat($("#lbTuitionItemTotal").html())))
                totalAmount += parseFloat(0);
            else
                totalAmount += parseFloat($("#lbTuitionItemTotal").html());

            if (isNaN(parseFloat($("#lbProductTotal").html())))
                totalAmount += parseFloat(0);
            else
                totalAmount += parseFloat($("#lbProductTotal").html());
            if($("#ckbKeyongYuE").is(':checked')){
                var yue=0;
                if(isNaN($("#MemberYuE").html())){
                    yue=0;
                }
                else
                {
                    yue=Number($("#MemberYuE").html()).toFixed(2)
                }
                $("#tbAmount").val(Number(totalAmount).toFixed(2)-yue);
            }
            else
            {
                $("#tbAmount").val(Number(totalAmount).toFixed(2));
            }
        }
        $(function () {
            $(".tbItemRefundAmount").live("change", function () {
                var itemRefundAmount=$(this).val();
                if (isNaN(itemRefundAmount)) {
                    itemRefundAmount = "0.00";
                }
                var tuitionItemGuid = $(this).parent().parent().children().eq(3).find("input[name='hfTuitionItemGuid']").val();
                

                if ($("#hfTuitionItemData").val() != "") {
                    jsonItemList = jQuery.parseJSON($("#hfTuitionItemData").val());
                    for (i = 0; i < jsonItemList.length; i++) {
                        if (jsonItemList[i].TuitionItemGuid.toLocaleLowerCase() == tuitionItemGuid.toLocaleLowerCase()) {
                            jsonItemList[i].ItemAmount = (Number(itemRefundAmount)).toFixed(2);
                        }
                    }
                    $("#hfTuitionItemData").val(JSON.stringify(jsonItemList));
                    BindItem();
                    ItemAutoCompute();
                }
                $(this).val((Number(itemRefundAmount)).toFixed(2));
            });
            $(".deleteTuitionItem").live("click", function () {
                var tuitionItemGuid = $(this).parent().parent().children().eq(3).find("input[name='hfTuitionItemGuid']").val();
               
                if ($("#hfTuitionItemData").val() != "") {
                    jsonItemList = jQuery.parseJSON($("#hfTuitionItemData").val());
                    for (i = 0; i < jsonItemList.length; i++) {
                        if (jsonItemList[i].TuitionItemGuid.toLocaleLowerCase() == tuitionItemGuid.toLocaleLowerCase()) {
                            jsonItemList.splice(i, 1);
                        }
                    }
                    $("#hfTuitionItemData").val(JSON.stringify(jsonItemList));
                    BindItem();
                    ItemAutoCompute();
                }
            });
        });

        function selectLesson(navId) {
            window.parent.showDialog("选择兴趣课", "../Modules/Teach/SelectLikeLesson.aspx?navId=" + navId, "500px", "420px");
        }
        function AddLikeLessonInfo(Items) {
            if (Items != null && Items != "") {
                var discount = "1.00";
             

                var hfInfo = $("#hfLessonData").val();
                if (hfInfo != "") {
                    jsonObjList = jQuery.parseJSON(hfInfo);
                }
                else {
                    jsonObjList = [];
                }
                var jsonItemList = jQuery.parseJSON(Items);

                var isExist = false;
                for (var i = 0; i < jsonObjList.length; i++) {
                    if (jsonObjList[i].LessonGuid.toLocaleLowerCase() == jsonItemList[0].LikeLessonGuid.toLocaleLowerCase()) {
                        isExist = true;
                    }
                }
                if (isExist) {
                    parent.parent.ShowTips("该兴趣课已添加");
                }
                else {
                  
                    jsonObjList.push({ TuitionRefundLessonGuid: "00000000-0000-0000-0000-000000000000", TuitionRefundGuid: "00000000-0000-0000-0000-000000000000", LessonGuid: jsonItemList[0].LikeLessonGuid, LessonName: jsonItemList[0].LikeLessonName, LessonPrice: jsonItemList[0].LikeLessonPrice, Amount: 0 });

                    $("#hfLessonData").val(JSON.stringify(jsonObjList));
                    BindLesson();
                    parent.parent.ShowTips("添加成功");
                }

            }

        }
        function BindLesson() {
            var hfInfo = $("#hfLessonData").val();
            if (hfInfo != "") {
                jsonItemList = jQuery.parseJSON(hfInfo);
            }
            else {
                jsonItemList = [];
            }
            var trHtml = '';
            for (i = 0; i < jsonItemList.length; i++) {
                trHtml += '<tr>';
                trHtml += '<td>' + jsonItemList[i].LessonName + '</td>';
                trHtml += '<td style="text-align:right;">' + (Number(jsonItemList[i].LessonPrice)).toFixed(2) + '</td>';
              

                trHtml += '<td><input type="text" name="tbLessonRefundAmount" value="' + (Number(jsonItemList[i].Amount)).toFixed(2) + '" class="int tbLessonRefundAmount" style="width:60px;text-align:right;" /></td>';

                trHtml += '<td><a href="javascript:void(0)" title="删除" class="deleteLesson"><img src="../../Images/del_c.png" /></a>';
                trHtml += '<input type="hidden" name="hfLessonGuid" value=\'' + jsonItemList[i].LessonGuid + '\' />';
                trHtml += '</td>';
                trHtml += '</tr>';
            }
            $("#lessonList tbody").html(trHtml);
            LessonAutoCompute();
        }
        function LessonAutoCompute() {
            var subTotal = 0, discountSubTotal = 0;
            var itemAmount = 0;
            $("#lessonList tbody tr").each(function () {
                itemAmount=0;
                if(isNaN($(this).children().eq(2).find("input").eq(0).val())) {
                    itemAmount=0;
                }
                else{
                    itemAmount= Number($(this).children().eq(2).find("input").eq(0).val());
                }
                subTotal += itemAmount;
            });
            $("#lbLessonTotal").text(subTotal.toFixed(2));
            ColAmount();
            ReSizeScrollbar();
        }
        $(function () {
            $(".tbLessonRefundAmount").live("change", function () {
                var lessonRefundAmount=$(this).val();
                if (isNaN(lessonRefundAmount)) {
                    lessonRefundAmount = "0.00";
                }
                var lessonGuid = $(this).parent().parent().children().eq(3).find("input[name='hfLessonGuid']").val();
               
                if ($("#hfLessonData").val() != "") {
                    jsonItemList = jQuery.parseJSON($("#hfLessonData").val());
                    for (var i = 0; i < jsonItemList.length; i++) {
                        if (jsonItemList[i].LessonGuid.toLocaleLowerCase() == lessonGuid.toLocaleLowerCase()) {
                            jsonItemList[i].Amount = (Number(lessonRefundAmount)).toFixed(2);
                        }
                    }
                    $("#hfLessonData").val(JSON.stringify(jsonItemList));
                    BindLesson();
                }
                $(this).val((Number(lessonRefundAmount)).toFixed(2));
            });
            $(".deleteLesson").live("click", function () {
                var lessonGuid = $(this).parent().parent().children().eq(3).find("input[name='hfLessonGuid']").val();
                if ($("#hfLessonData").val() != "") {
                    jsonItemList = jQuery.parseJSON($("#hfLessonData").val());
                    for (var i = 0; i < jsonItemList.length; i++) {
                        if (jsonItemList[i].LessonGuid.toLocaleLowerCase() == lessonGuid.toLocaleLowerCase()) {
                            jsonItemList.splice(i, 1);
                        }
                    }
                    $("#hfLessonData").val(JSON.stringify(jsonItemList));
                    BindLesson();
                }
            });
        });


        function selectProduct(navId) {
            window.parent.showDialog("选择物品", "../Modules/Asset/SelectProduct.aspx?navId=" + navId + "&act=1", "800px", "500px");
        }
        function AddProduct(Items) {
            if (Items != null && Items != "") {
                var hfInfo = $("#hfProductData").val();
                if (hfInfo != "") {
                    jsonObjList = jQuery.parseJSON(hfInfo);
                }
                else {
                    jsonObjList = [];
                }
                var jsonItemList = jQuery.parseJSON(Items);

                var isExist = false;
                for (var i = 0; i < jsonObjList.length; i++) {
                    if (jsonObjList[i].ProductGuid.toLocaleLowerCase() == jsonItemList[0].ProductGuid.toLocaleLowerCase()) {
                        isExist = true;
                    }
                }
                if (isExist) {
                    parent.parent.ShowTips("该物品已添加");
                }
                else {

                    jsonObjList.push({ TuitionRefundProductGuid: "00000000-0000-0000-0000-000000000000", TuitionRefundGuid: "00000000-0000-0000-0000-000000000000", ProductGuid: jsonItemList[0].ProductGuid, ProductPrice: jsonItemList[0].SalePrice, ProductName: jsonItemList[0].ProductName, Amount:0 });


                    $("#hfProductData").val(JSON.stringify(jsonObjList));
                    BindProduct();
                    parent.parent.ShowTips("添加成功");
                }

            }

        }
        function BindProduct() {
            var hfInfo = $("#hfProductData").val();
            if (hfInfo != "") {
                jsonItemList = jQuery.parseJSON(hfInfo);
            }
            else {
                jsonItemList = [];
            }
            var trHtml = '';
            for (i = 0; i < jsonItemList.length; i++) {
                trHtml += '<tr>';
                trHtml += '<td>' + jsonItemList[i].ProductName + '</td>';
                trHtml += '<td style="text-align:right;">' + (Number(jsonItemList[i].ProductPrice)).toFixed(2) + '</td>';
                trHtml += '<td><input type="text" name="tbProductRefundAmount" value="' + (Number(jsonItemList[i].Amount)).toFixed(2) + '" class="int tbProductRefundAmount" style="width:60px;text-align:right;" /></td>';
                trHtml += '<td><a href="javascript:void(0)" title="删除" class="deleteProduct"><img src="../../Images/del_c.png" /></a>';
                trHtml += '<input type="hidden" name="hfProductGuid" value=\'' + jsonItemList[i].ProductGuid + '\' />';
                trHtml += '</td>';
                trHtml += '</tr>';
            }
            $("#ProductList tbody").html(trHtml);
            ProductAutoCompute();
        }
        function ProductAutoCompute() {
            var subTotal = 0, discountSubTotal = 0;
            $("#ProductList tbody tr").each(function () {
                itemAmount=0;
                if(isNaN($(this).children().eq(2).find("input").eq(0).val())) {
                    itemAmount=0;
                }
                else{
                    itemAmount= Number($(this).children().eq(2).find("input").eq(0).val());
                }
                subTotal += itemAmount;
            });
            $("#lbProductTotal").text(subTotal.toFixed(2));
            ColAmount();
            ReSizeScrollbar();
        }
        $(function () {
            $(".tbProductRefundAmount").live("change", function () {
                var productGuid = $(this).parent().parent().children().eq(3).find("input[name='hfProductGuid']").val();
                var productRefundAmount = $(this).val();
                if (isNaN(productRefundAmount)) {
                    productRefundAmount = "0.00";
                }
                if ($("#hfProductData").val() != "") {
                    jsonItemList = jQuery.parseJSON($("#hfProductData").val());
                    for (i = 0; i < jsonItemList.length; i++) {
                        if (jsonItemList[i].ProductGuid.toLocaleLowerCase() == productGuid.toLocaleLowerCase()) {
                            jsonItemList[i].Amount = (Number(productRefundAmount)).toFixed(2);
                        }
                    }
                    $("#hfProductData").val(JSON.stringify(jsonItemList));
                    BindProduct();
                }
                $(this).val((Number(productRefundAmount)).toFixed(2));
            });
            $(".deleteProduct").live("click", function () {
                var productGuid = $(this).parent().parent().children().eq(3).find("input[name='hfProductGuid']").val();
                if ($("#hfProductData").val() != "") {
                    jsonItemList = jQuery.parseJSON($("#hfProductData").val());
                    for (i = 0; i < jsonItemList.length; i++) {
                        if (jsonItemList[i].ProductGuid.toLocaleLowerCase() == productGuid.toLocaleLowerCase()) {
                            jsonItemList.splice(i, 1);
                        }
                    }
                    $("#hfProductData").val(JSON.stringify(jsonItemList));
                    BindProduct();
                }
            });
        });

        $(function(){
            if ($("#hfTuitionItemData") != "")
            {
                BindItem();
            }
            if ($("#hfLessonData") != "")
            {
                BindLesson();
            }
            if ($("#hfProductData") != "")
            {
                BindProduct();
            }
            var tuitionRefundGuid='00000000-0000-0000-0000-000000000000';
            if(tuitionRefundGuid!='00000000-0000-0000-0000-000000000000')
            {
                $("#trMemberType").removeClass("hidden");
                $("#btnAddMember").addClass("hidden");
            }

        });
    </script>

    <script type="text/javascript">
        //点击设置，显示添加前缀
        function setContractNum(obj) {
            $("#Ta_fieldExport").css("display", "block");
        }
        //前缀保存后，隐藏修改编码
        function SaveSet() {
            $.AjaxETM("Finance_PrefixAdd", { "PrefixCode": $("#txtFirst").val(), "Type": 2 },
               function (data) {
                   hideSet();
                   if (data != null) {
                       if (data.toLocaleLowerCase() != "false".toLocaleLowerCase()) {
                           var codeNO = $("#tbBillNo").val();
                           //原先 前缀
                           var hftxtFirst = $("#hftxtFirst").val();
                           if (hftxtFirst == "") {
                               $("#tbBillNo").val(data + codeNO + "");
                               $("#hftxtFirst").val(data);
                           }
                           else {
                               var codeNOs = codeNO.substr(0, hftxtFirst.length);
                               //判断 原先前缀 是否在 定金号前缀存在 有则 替换
                               if (codeNOs.toLocaleLowerCase() == hftxtFirst.toLocaleLowerCase()) {
                                   $("#tbBillNo").val(codeNO.replace(codeNOs, data));
                                   $("#hftxtFirst").val(data);
                               }
                               else {
                                   //$("#tbBillNo").val(codeNO.replace(codeNOs, data));
                                   //$("#hftxtFirst").val(data);
                               }
                           }
                       }
                   }
               }, false, "text");
        }
        //编码点击取消，隐藏
        function hideSet() {
            $("#Ta_fieldExport").css("display", "none")
        }
    </script>
    <script type="text/javascript">
        $(function () {
            $(".mouseTips").bind({
                mouseenter: function () {
                    var $offset = $(this).position();
                    $(this).next().css({ "top": ($offset.top + 23) + "px", "left": ($offset.left - 80) + "px" }).show();
                },
                mouseleave: function () {
                    $(this).next().hide();
                }
            });
        });
    </script>
    <meta http-equiv="X-UA-Compatible" content="IE=11; IE=10; IE=9; IE=8; IE=7; IE=EDGE"/><script src='/Scripts/jquery.nicescroll.min.js' type='text/javascript'></script><script type='text/javascript'>var isEtmClient=false;function ReSizeScrollbar() { if ($('form').getNiceScroll().length > 0) {     $('form').getNiceScroll().onResize();}}function ReSizeFlexgridScrollbar() { if ($('.bDiv').getNiceScroll().length > 0) {     $('.bDiv').getNiceScroll().onResize();}}function InitFlexgridScrollbar(){     $('.bDiv').niceScroll({cursorcolor: '#75A801',zindex:4});}function ReSizenDivScrollbar() { if ($('.flexigrid .nDiv').getNiceScroll().length > 0) {     $('.flexigrid .nDiv').getNiceScroll().onResize();}}function InitnDivScrollbar(){     $('.flexigrid .nDiv').niceScroll({cursorcolor: '#75A801',horizrailenabled:false});}function proxyExecuteFun(funName) {if(funName == undefined || funName==null|| funName.length==0){window.parent.showsending(true, "执行中，请耐心等待");setTimeout(function() { window.parent.showsending(false); }, 5000);return;}  if (window[funName]()) {window.parent.showsending(true, "执行中，请耐心等待");setTimeout(function() { window.parent.showsending(false); }, 5000);return true; } return false; };var _tmpOnSelectedFile = null;function onSelectedFile(fileName, fileUrl, isImg) {   if (_tmpOnSelectedFile != null) {        _tmpOnSelectedFile(fileName, fileUrl, isImg);    }}function showFileList(callback) {   window.parent.showDialog('查看素材库', '/Modules/OA/CMyFileListView.aspx?navId=39272478-21e7-4beb-990b-3d8630335e97', '900px', '450px');   _tmpOnSelectedFile = callback;}$(function () {if (navigator.userAgent.toLowerCase().indexOf('edge/') != -1) { $('input[type=submit],.tmpSubmitButton').bind({ mouseenter: function () { $(this).addClass('tmpSubmitButton'); $(this).prop('type', 'button'); }, mouseleave: function () { $(this).removeClass('tmpSubmitButton'); $(this).prop('type', 'submit'); }, click: function () { $(this).removeClass('tmpSubmitButton'); $(this).prop('type', 'submit'); } }); }if (window.parent != undefined && window.parent != null && typeof window.parent.showsending != "undefined") { window.parent.showsending(false, ''); }$(".button").each(function() { if ($(this).attr("type") == "submit" &&!$(this).hasClass('noloading') && window.parent != undefined && window.parent != null && typeof window.parent.showsending != "undefined") { var tmpClick = $(this).attr("onclick");if(tmpClick == undefined || tmpClick==null|| tmpClick.length<2){ $(this).attr("onclick","proxyExecuteFun();");return;}  if (tmpClick.indexOf("return ") != -1 && tmpClick.indexOf("(") != -1) { tmpClick = tmpClick.substring(7).replace(/\s+/g, ''); if (tmpClick.indexOf("()") != -1) { var funName = tmpClick.substring(0, tmpClick.indexOf("(")); $(this).attr("onclick","return proxyExecuteFun('" + funName + "');"); } } } });$('body').click(function() {     if (typeof parent.onChildPageClick !='undefined') {         parent.onChildPageClick();     }});     $('form').height($(window).height()-0).niceScroll({cursorcolor: '#75A801',horizrailenabled:false });     $(window).resize(function () {         ReSizeScrollbar();     });});</script></head>
<body>
    <form method="post" action="TuitionOut.aspx?navId=39272478-21e7-4beb-990b-3d8630335e97" id="form1">
<div class="aspNetHidden">
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUJODgxODIzNTYwD2QWAgIDD2QWBgIDDxBkEBUGCeivt+mAieaLqQzlnKjlm63lubzlhL8M5a6a6YeR5bm85YS/DOaWsOadpeS6huinowzmr5XkuJrlubzlhL8GaGVoZWRhFQYkMDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwJGY2NTYyNjkzLTY3N2EtNGQ2Mi1hMzAzLWEwNjMyMDg4M2M2MCRmY2EzZjJjNC0yMjgwLTQyMzUtOTFiYy00ZWRlM2I5MTI5NTAkMzgyNjY4MGEtZTZiYi00YTgwLTg0ZjctMWE1OTMyNmFlYjZlJGQ2NTM2YTFhLWNhODktNGY0YS1hNTBjLWI4MTQ5OWNlNzJlNiQ5Mzk1N2JjNS1hNjc4LTQyZjctYmJjMi03NmE1OTBjYTRhMzgUKwMGZ2dnZ2dnZGQCCQ8QZBAVCAnor7fpgInmi6kJ6IiS5aSn5rO9BGRlbW8G5p2O5qKFBue6ouiMtgbog6HmnaUG6IOh6ZSmBndhbmRvdRUIJDAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCQzODkxMGZjZi1hOWFmLTQyYzEtYjQ1MC0yZjBjMzM0YjI3Y2YkMzZiZGVlMjAtNjAxNi00ZjRlLWEyOTAtNTgyYzExNDNhNWI3JDY1NjcxZTczLWY5ZDAtNDU0NS05M2ZmLThiODE3Y2FkODgwZiRkNmZiMjgyYi1lNDcyLTQ0OWYtYjJjNS1jMmJjOTVjYzRhYjUkM2VkYzkzOWEtMGU0MC00MGQwLWEyMTEtZmY3ZWQwZTQ2MmQ4JGJhYWE1YWY1LTAyZDgtNDZiZS1iNTRkLWRiMjllYWVjMDkwZCRjNzEwYTBhZS0xZmRjLTQ1OGYtYTcwNS02NzY0ODFkY2IyZjAUKwMIZ2dnZ2dnZ2dkZAIKDxBkEBUECeivt+mAieaLqRvlu7rooYwgNjIyMjAyMjAgMTUwMDEzNzAwMTIZ546w6YeR5pSv5LuYIOeOsOmHkeaUr+S7mBjmlK/ku5jlrp0gMTIzNDg5NDc0ODk3ODQVBCQwMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAkNDlhYWI1NTgtYjMxMC00MjE5LTk2ZWQtYWIxOTkxNTFjZTE1JGZlMzBlYTMyLTgzNDAtNGMwNi1iZGFjLWVhZWEyODU2NDI0YiQ5YjFkZWIyNC04ZGEzLTQ4NjAtYTNhMC00ZGEwNTNlYzE5NjAUKwMEZ2dnZ2RkGAEFHl9fQ29udHJvbHNSZXF1aXJlUG9zdEJhY2tLZXlfXxYBBQxja2JLZXlvbmdZdUXN5LddAMXb7/A/kTjmLVayq6Ab9SDhMcZa+F+WlkZ+fw==" />
</div>

<div class="aspNetHidden">

	<input type="hidden" name="__VIEWSTATEGENERATOR" id="__VIEWSTATEGENERATOR" value="8B26007F" />
	<input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEdAB9mtkhn8lzTk5tfKSGjyM9zMUAEmBX89jqSF/DYTVmn0DZ/6w3tAT53PKz9wp8KfdOdCEE5rWwmMt3cLBH2pslFF+cjptRmoJclhNgtXXv/YojIWJRx4SkJozm0E7exbE2RcKgPmOOSCRMQOX723xYCdNrUulxxIK56440AQxIHeJaMHdVJzAc9Jp/FxNVeuqAhAtrdgzW3yLYKYUOCMO1GCF1MJ2WeWWPXDGv0UpcwBI5M6NbjisH3mZwEymGqu/s0begnwv9UoIKUiHkJvH7t/1ef7kVVBNBcv50nay6QBA/Rt3r0DUL0VaRzqbtAVAiw3IhQMlh9aIemy0j8Mcl+FD4m17LWVEDm1dO1WVex51Uyfnddq91xqA87cL61y6e4YYUu9Bkda9/TDZu7LTklSZKZ/koUELfusDXxvezwThOtW70mO0bgMv85T1Ey1tS7fngFGEa7dKQWW/w7qh8OIsGrM/lY/Es/MHPO+HZOXjDmgjCKb9c7Vd5H4O3JsXKdBjr2ffaZ9UrlvpIHdCsjBGfXCcbCrp7XalyTk5Czkh3pwY+Bd/Aw8krA6JrL3ATTjdjjMxju2erG510zak197Ss2yae+iywykZfCl2b6e91ekj8/vYBmY3OPeVaYuePN+DvxnwFeFeJ9MIBWR693berkduvMLyg+vW2Tj1TT8IqGKXEtgOPm+A3PF7Ehqtg=" />
</div>
          <script src="../../Scripts/jQuery.etmRightLinks.js"></script><script src="../../Scripts/jQuery.etmTabs.js"></script><script type="text/javascript">$(function () {$("#rightLinks").etmTabs({item: [{ Text: "收费登记", Url: "../../Modules/Finance/TuitionOut.aspx?navId=39272478-21e7-4beb-990b-3d8630335e97&pageid=b2b2cfac-d116-410c-bf9b-de4050810bb2", Selected: true },{ Text: "退费管理", Url: "../../Modules/Finance/TuitionOutList.aspx?navId=39272478-21e7-4beb-990b-3d8630335e97&pageid=0272a1ab-23c1-4f12-820c-da520ee13e18" }]});});</script><div id='rightLinks' style='position: absolute; top: 2px; right: 10px;'></div>
        <table class="edit">
            <tr>
                <td class="textAlignRight">幼儿：
                </td>
                <td colspan="3">
                    <input type="hidden" name="hfMemberGuid" id="hfMemberGuid" />
                    <span id="lbMemberInfo"></span>
                      <a onclick="selectMember('39272478-21e7-4beb-990b-3d8630335e97    ')" href="javascript:void(0)" id="btnAddMember">
                            <img alt="点击添加幼儿" title="点击添加幼儿" src="./home/images/add.png" style="border: 0; vertical-align: middle;" /></a>
                 
                    <span class="words">&nbsp;*</span>
                </td>
            </tr>
            <tr id="trMemberType" class="hidden">
                <td class="textAlignRight">幼儿类型：</td>
                <td colspan="3">
                    <select name="ddlMemberType" id="ddlMemberType" class="int">
	<option value="00000000-0000-0000-0000-000000000000">请选择</option>
	<option value="f6562693-677a-4d62-a303-a06320883c60">在园幼儿</option>
	<option value="fca3f2c4-2280-4235-91bc-4ede3b912950">定金幼儿</option>
	<option value="3826680a-e6bb-4a80-84f7-1a59326aeb6e">新来了解</option>
	<option value="d6536a1a-ca89-4f4a-a50c-b81499ce72e6">毕业幼儿</option>
	<option value="93957bc5-a678-42f7-bbc2-76a590ca4a38">heheda</option>

</select>&nbsp;&nbsp;<a href="javascript:void(0);" class="mouseTips">[?]</a>
                    <div class="tips" style="display: none;">
                        单据成交后，幼儿的类型修改成此类型,不选则不改变
                    </div>

                    <span id="KeyongShow">
                        <input id="ckbKeyongYuE" type="checkbox" name="ckbKeyongYuE" onclick="SubAmount(this);" /><span class="words">余额: 
                            <span id="MemberYuE"></span></span>&nbsp;<a href="javascript:void(0);" class="mouseTips">[?]</a>
                        <div class="tips" style="display: none;">
                            勾选后，将退掉幼儿的账号余额
                        </div>
                    </span>
                </td>
            </tr>
            <tr>
                <td class="textAlignRight">单据号：
                </td>
                <td colspan="3">
                    <input name="tbBillNo" type="text" value="TFh1703090001" id="tbBillNo" class="int" />
                    <span class="words">&nbsp;*</span>
                    <a title="设置合同编号前缀" onclick="setContractNum(this);" href="javascript:void(0)">[设置]</a>
                    <table id="Ta_fieldExport" class="list" style="position: fixed; z-index: 6; width: 340px; display: none" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td colspan="2" style="padding-bottom: 5px;">
                                <div style="text-align: center; padding-top: 10px;">
                                    编号前缀：
                                        <input name="txtFirst" type="text" value="TFh" id="txtFirst" class="int" style="width: 92px; text-align: center" />
                                    <input type="hidden" name="hftxtFirst" id="hftxtFirst" value="TFh" />
                                </div>
                                <div style="text-align: center; padding-top: 10px; margin-top: 7px;">
                                    <input id="btnSaveSet" class="button" type="button" onclick="SaveSet()" value="保存" />
                                    <input id="btnChance" class="button" type="button" onclick="hideSet()" value="取消" style="cursor: default;" />
                                </div>
                            </td>
	</tr>
</table>

                </td>

            </tr>
            <tr>
                <td class="textAlignRight" style="width:80px;">退费日期：
                </td>
                <td class="borderRight" style="width:215px;">
                    <input name="tbChargeDate" type="text" value="2017-03-09" id="tbChargeDate" class="int" onfocus="WdatePicker({dateFmt:&#39;yyyy-MM-dd&#39;})" />
                    <span class="words">&nbsp;*</span>
                </td>
                <td class="textAlignRight" style="width:80px;">经办人：
                </td>
                <td>
                    <select name="ddlTransactor" id="ddlTransactor" class="int">
	<option value="00000000-0000-0000-0000-000000000000">请选择</option>
	<option value="38910fcf-a9af-42c1-b450-2f0c334b27cf">舒大泽</option>
	<option value="36bdee20-6016-4f4e-a290-582c1143a5b7">demo</option>
	<option value="65671e73-f9d0-4545-93ff-8b817cad880f">李梅</option>
	<option value="d6fb282b-e472-449f-b2c5-c2bc95cc4ab5">红茶</option>
	<option value="3edc939a-0e40-40d0-a211-ff7ed0e462d8">胡来</option>
	<option value="baaa5af5-02d8-46be-b54d-db29eaec090d">胡锦</option>
	<option value="c710a0ae-1fdc-458f-a705-676481dcb2f0">wandou</option>

</select>
                </td>
            </tr>
            <tr>
                <td class="textAlignRight">退费帐号：
                </td>
                <td class="borderRight">
                    <select name="ddlAccount" id="ddlAccount" class="int">
	<option value="00000000-0000-0000-0000-000000000000">请选择</option>
	<option value="49aab558-b310-4219-96ed-ab199151ce15">建行 62220220 15001370012</option>
	<option value="fe30ea32-8340-4c06-bdac-eaea2856424b">现金支付 现金支付</option>
	<option value="9b1deb24-8da3-4860-a3a0-4da053ec1960">支付宝 12348947489784</option>

</select>
                </td>
                <td class="textAlignRight">实退金额：
                </td>
                <td>
                    <input name="tbAmount" type="text" id="tbAmount" class="int" style="width: 120px; text-align: right;" />
                    元 &nbsp;
                </td>
            </tr>

            <tr>
                <td colspan="4" class="borderBottom"></td>
            </tr>
            <tr>
                <td class="textAlignRight">备注：
                </td>
                <td colspan="3">
                    <textarea name="tbNotes" rows="2" cols="20" id="tbNotes" class="int" style="width: 470px; height: 47px;">
</textarea>
                </td>
            </tr>
            <tr>
                <td colspan="4" class="borderBottom"></td>
            </tr>
           <tr>
                <td colspan="4" style="padding-left: 20px;">退费科目：<a onclick="selectTuitionItem('39272478-21e7-4beb-990b-3d8630335e97    ')" href="javascript:void(0)">
                    <img alt="点击添加退费科目" title="点击添加退费科目" src="./home/images/add.png" style="border: 0; vertical-align: middle;">
                </a>
                    <input type="hidden" name="hfTuitionItemData" id="hfTuitionItemData" />
                </td>
            </tr>
            <tr>
                <td colspan="4">
                    <table id="TuitionItemList" class="list" style="text-align: center;">
                        <thead>
                            <tr>
                                <th style="width:30%;">科目名称</th>
                                <th style="width:30%;">价格</th>
                                <th style="width:30%;">退费金额</th>
                                <th style="width:100px;">操作</th>
                            </tr>
                        </thead>
                        <tbody>
                            
                        </tbody>
                        <tfoot>
                            <tr>
                                <td></td>
                                <td style="text-align: right;">总计：</td>
                                <td style="text-align: right;">
                                    <span id="lbTuitionItemTotal"></span></td>
                                <td></td>
                            </tr>
                        </tfoot>
                    </table>
                </td>
            </tr>
            <tr>
                <td colspan="4" class="borderBottom"></td>
            </tr>
            

             <tr>
                <td colspan="4" style="padding-left: 20px;">教育科目：<a onclick="selectLesson('39272478-21e7-4beb-990b-3d8630335e97    ')" href="javascript:void(0)">
                    <img alt="点击添加教育科目" title="点击添加教育科目" src="./home/images/add.png" style="border: 0; vertical-align: middle;">
                </a>
                    <input type="hidden" name="hfLessonData" id="hfLessonData" />
                </td>
            </tr>
            <tr>
                <td colspan="4">
                    <table id="lessonList" class="list" style="text-align: center;">
                        <thead>
                            <tr>
                                <th style="width:30%;">课程名称</th>
                                <th style="width:30%;">价格</th>
                                <th style="width:30%;">退费金额</th>
                                <th style="width:100px;">操作</th>
                            </tr>
                        </thead>
                        <tbody>
                            
                        </tbody>
                        <tfoot>
                            <tr>
                                <td colspan="2" style="text-align: right;">总计：</td>
                                <td style="text-align: right;">
                                    <span id="lbLessonTotal"></span></td>
                                <td></td>
                            </tr>
                        </tfoot>
                    </table>
                </td>
            </tr>
            <tr>
                <td colspan="4" class="borderBottom"></td>
            </tr>
            <tr>
                <td colspan="4" style="padding-left: 20px;">物品：<a onclick="selectProduct('39272478-21e7-4beb-990b-3d8630335e97    ')" href="javascript:void(0)">
                    <img alt="点击添加物品" title="点击添加物品" src="./home/images/add.png" style="border: 0; vertical-align: middle;">
                </a>
                    <input type="hidden" name="hfProductData" id="hfProductData" />
                </td>
            </tr>
            <tr>
                <td colspan="4">
                    <table id="ProductList" class="list" style="text-align: center;">
                        <thead>
                            <tr>
                                <th style="width:30%;">物品名称</th>
                                <th style="width:30%;">价格</th>
                                <th style="width:30%;">退费金额</th>
                                <th style="width:100px;">操作</th>
                            </tr>
                        </thead>
                        <tbody>
                            
                        </tbody>
                        <tfoot>
                            <tr>
                                <td colspan="2" style="text-align: right;">总计：</td>
                                <td style="text-align: right;">
                                    <span id="lbProductTotal"></span></td>
                                <td></td>
                            </tr>
                        </tfoot>
                    </table>
                </td>
            </tr>
            <tr>
                <td colspan="4" style="text-align: center">
                    <input type="submit" name="Button1" value="提 交" onclick="return checkData();" id="Button1" class="button" />
                </td>
            </tr>
        </table>
        <script type="text/javascript">
            function checkData()
            {
                if($.trim($("#tbBillNo").val())=="")
                {
                    alert("单据号不能为空");
                    return false;
                }
                
                if($.trim($("#hfMemberGuid").val())=="")
                {
                    alert("请选择幼儿");
                    return false;
                }
                if($.trim($("#tbChargeDate").val())=="")
                {
                    alert("请选择退费日期");
                    return false;
                }
                
                if($("#ddlAccount").val()=="00000000-0000-0000-0000-000000000000")
                {
                    alert("请选择退费账号");
                    return false;
                }
                
                return true;
            }
        </script>
    </form>
</body>
</html>
